// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '产品类型',
        name: 'ProductType',
        url: "/ProductType/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductTypeNumber":"","ProductTypeName":"","ProductTypeStatus":"","ProductTypeNote":""};
    const editFormOptions = [[{"title":"类型编号","field":"ProductTypeNumber","type":"text"},
                               {"title":"类型名称","field":"ProductTypeName","type":"text"}],
                              [{"dataKey":"状态1","data":[],"title":"状态","field":"ProductTypeStatus","type":"select"},
                               {"title":"备注","field":"ProductTypeNote","type":"text"}]];
    const searchFormFields = {"ProductTypeNumber":"","ProductTypeName":"","ProductTypeStatus":"","ProductTypeNote":""};
    const searchFormOptions = [[{"title":"类型编号","field":"ProductTypeNumber"},{"title":"类型名称","field":"ProductTypeName"}],[{"dataKey":"状态1","data":[],"title":"状态","field":"ProductTypeStatus","type":"number"},{"title":"备注","field":"ProductTypeNote"}]];
    const columns = [{field:'Id',title:'主键自增',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductTypeNumber',title:'类型编号',type:'string',width:220,align:'left',sort:true},
                       {field:'ProductTypeName',title:'类型名称',type:'string',width:220,align:'left'},
                       {field:'ProductTypeStatus',title:'状态',type:'int',bind:{ key:'状态1',data:[]},width:110,align:'left'},
                       {field:'ProductTypeNote',title:'备注',type:'string',width:220,align:'left'},
                       {field:'IsDel',title:'删除字段',type:'int',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}